package sctu.edu.java.year2016.team07.nieying.practice.dibazhang.nianxiyi;

import sctu.edu.java.year2016.team07.nieying.practice.dibazhang.nianxiyi.Calrect;

/**
 * Created by Administrator on 2016/5/25 0025.
 */

    class RRect implements Calrect {
    private int x;
    private int y;

    public RRect() {
        x = 3;
        y = 4;
    }

    public int calarea() {
        return x * y;
    }

    public int calgirth() {
        return x * 2 + y * 2;
    }

    public int getx() {
        return x;
    }

    public int gety() {
        return y;
    }
}
